package com.his.his_system.controller;

import com.his.his_system.common.util.ResultAdvice;
import com.his.his_system.domain.DzmHisAuthRule;
import com.his.his_system.domain.Router;
import com.his.his_system.service.AuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.management.relation.RelationSupport;
import java.util.List;

@RestController
public class AuthController {

    @Autowired
    private AuthService authService;

    @GetMapping("/route")
    public ResultAdvice getRoutes() {
        return ResultAdvice.success(authService.getMenus(),"菜单");
    }

}
